<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
	"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"></meta>
<script type="text/javascript" src="../mjt.js"></script>
<title>mjt toplevel should expand only once</title>
<script type="text/javascript">
  nruns = 0;
</script>
</head>
<body onload="mjt.run()" style="display:none">
  <div>running mjt version ${mjt.VERSION}.</div>
  <div>
    this template counts how many times it gets run and
    complains if it's more than one.
  </div>

  <pre mjt.script="">
    /* mjt.log('run', this, this.subst_id); */
    nruns++;
    if (nruns &gt; 1) {
        mjt.error('toplevel should only run once');
        console.trace();
    }
  </pre>
  nruns = $nruns
</body></html>
